package com.quanquan.user.entity;

import lombok.Data;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 功能描述: 积分签到规则
 *
 * @ClassName: SignInRule
 * @Author: xiaoqianh丶
 * @Date: 2019-04-05 21:39
 * @Version: V1.0
 */
@Data
@Entity
@Table(name = "oo_sign_in_rule")
public class SignInRule {

    /**
     * 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 每次给的积分
     **/
    @Column(name = "integral_point",length = 32)
    private String integralPoint ;


    /**
     * 连续签到的天数
     */
    @Column(name = "consecutive_day", length = 32)
    private String consecutiveDay;


    /**
     * 第二个连续签到的天数
     */
    @Column(name = "consecutive_second_day", length = 32)
    private String consecutiveSecondDay;


    /**
     * 连签到的奖励积分
     */

    @Column(name = "bonus_second_points", length = 32)
    private String bonusSecondPoints;
    /**
     * 奖励类型
     */
    @Column(name = "reward_type",columnDefinition = "TINYINT default 0",nullable = false)
    private Integer rewardType;
    /**
     * 连签到的奖励积分
     */

    @Column(name = "bonus_points", length = 32)
    private String bonusPoints;


    /**
     * 连签到的奖励券
     */

    @Column(name = "couponId", length = 32)
    private String couponId;

    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;

    /**
     * 最新修改时间
     */
    @Column(name = "update_time", nullable = false, length = 32)
    private String updateTime;

    @Type(type = "yes_no")
    @Column(name = "STATUS_USE")
    private Boolean useStatus;// 是否使用

    @Type(type = "yes_no")
    @Column(name = "STATUS_REMOVE")
    private Boolean remove;// 是否删除

}
